const langStore = defineStore("lang", {
  state: () => ({
    lang: localStorage.getItem("LANG") || "cn",
  }),
  actions: {
    // 登录

    changLang(lang) {
      localStorage.setItem("LANG", lang);
      this.lang = lang;
    },
  },
});

export default langStore;
